import { WidgetType } from "../widgets/attr-widget"

import { GRID,COLLAPSE,CARD,INPUT,TEXTAREA,NUMBER,RATE,SLIDER,SWITCH,DATEPICKER,DATERANGE,TIMEPICKER,TIMERANGE,CHECKBOX,RADIO,SELECT,BUTTON,DIVIDER,IMAGE,UPLOAD } from '../widgets/attr-widget'

export default interface WidgetItem {
  widgetId: string
  type: WidgetType
  label: string
  GRID?: GRID
  CARD?: CARD
  COLLAPSE?: COLLAPSE
  INPUT?: INPUT
  SWITCH?: SWITCH
  TEXTAREA?: TEXTAREA
  NUMBER?: NUMBER
  RATE?: RATE
  SLIDER?: SLIDER
  DATEPICKER?: DATEPICKER
  DATERANGE?: DATERANGE
  TIMEPICKER?: TIMEPICKER
  TIMERANGE?: TIMERANGE
  CHECKBOX?: CHECKBOX
  RADIO?: RADIO
  SELECT?: SELECT
  BUTTON?: BUTTON
  DIVIDER?: DIVIDER
  IMAGE?: IMAGE
  UPLOAD?: UPLOAD
  setValue?: ()=>void
  loadValue?: ()=>void
}